load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//rs:system-tests-pkg"])

rust_library(
    name = "utils",
    testonly = True,
    srcs = glob(["src/**/*.rs"]),
    crate_name = "ic_consensus_system_test_utils",
    deps = [
        # Keep sorted.
        "//rs/canister_client",
        "//rs/config",
        "//rs/http_utils",
        "//rs/nervous_system/common",
        "//rs/nervous_system/common/test_keys",
        "//rs/nns/cmc",
        "//rs/nns/common",
        "//rs/nns/constants",
        "//rs/nns/governance/api",
        "//rs/protobuf",
        "//rs/registry/canister",
        "//rs/registry/keys",
        "//rs/registry/nns_data_provider",
        "//rs/registry/subnet_type",
        "//rs/rust_canisters/canister_test",
        "//rs/tests/consensus/tecdsa/utils",
        "//rs/tests/driver:ic-system-test-driver",
        "//rs/types/base_types",
        "//rs/types/management_canister_types",
        "//rs/types/types",
        "@crate_index//:anyhow",
        "@crate_index//:candid",
        "@crate_index//:chrono",
        "@crate_index//:futures",
        "@crate_index//:ic-agent",
        "@crate_index//:leb128",
        "@crate_index//:openssh-keys",
        "@crate_index//:prost",
        "@crate_index//:rand",
        "@crate_index//:reqwest",
        "@crate_index//:rsa",
        "@crate_index//:serde",
        "@crate_index//:serde_json",
        "@crate_index//:slog",
        "@crate_index//:ssh2",
        "@crate_index//:tempfile",
        "@crate_index//:tokio",
        "@crate_index//:url",
    ],
)
